let user = null;
let a = user?.name;
console.log( a );


class User {
    _name = "tom";

    get name(){
        return this._name
    }
    set name(nv){
        this._name = nv;
    }
}